const SnowflakeId = require('snowflake-id')

const date = new Date()
const year = date.getFullYear()
const snowflake = new SnowflakeId.default({
  mid: 42,
  offset: (year - 1970) * 31536000 * 1000,
})

module.exports = snowflake
